How to make a Skill Tree Background

The stone background that you see in the Skill Trees are dc6s found in data\global\ui\spells\

skltree_a_back.dc6   - for Amazon
skltree_s_back.dc6   - for Sorceresss
skltree_n_back.dc6   - for Necromancer
skltree_p_back.dc6   - for Paladin
skltree_b_back.dc6   - for Barbarian
skltree_d_back.dc6   - for Druid
skltree_i_back.dc6   - for Assassin

The first 5 are in d2data.mpq, the last 2 are in d2exp.mpq.

They are specific to the character, and generally once you move any skill around, it is good to build a new skill tree to 'frame' it up.

However, it is probably easier to build a skill tree background from scratch, and here are the tools to do so.

----

Included in this zip file:
skltree_x_back.dc6
top-org.bmp
middle-org.bmp
bottom-org.bmp
back-org.bmp
symbols.bmp

----

If you simply want a stone background without any sockets for the skill icons or the cancel button, you can use skltree_x_back.dc6 and copy it for each character.

eg. To make a copy to replace the Amazon's background, you copy the dc6 and rename it to skltree_a_back.dc6 and save it in data\global\ui\spells\

----

However if you want to make a customised one with sockets, I have included BMP versions of the individual skilltree backgrounds, and some arrows and the sockets for the skillicons and the cancel button. 

Programs Required:
Some DC6 Editor - DC6 Creator, DC6Con, DC6Maker, etc.
A decent graphics program - Paint Shop Pro, Photo Shop, etc.

I have tried using MS Paint, and I seriously discourage it... It is almost impossible. Not impossible, but really not worth the effort.

To select symbols from symbols.bmp, you need to use the tool that can automatically select an image based on tolerance, like Magic Wand in PSP. Alternatively, you can select, copy and paste as a transparent image. The background of symbols.bmp is 255,255,255 white.

Depending on what your needs, you may or may not want/need to do the following:
1) Place the Skillicon sockets
2) Place the Cancel button socket
3) Place arrows to show skill requirements
4) Pack the skilltree backgrounds into a DC6
5) Name and Save the skilltree backgrounds

----

1) Placing the Skillicon sockets

In SklTree 1.1, you can set the values of the offsets for the various skill icons. Thus, the coordinates to place the 'sockets' would differ based on your values.

The coordinates of the top-left corner of the 'socket' for D2/LoD default setting:
( 12, 11)	( 81, 11)	(150, 11)
( 12, 79)	( 81, 79)	(150, 79)
( 12,147)	( 81,147)	(150,147)
( 12,215)	( 81,215)	(150,215)
( 12,284)	( 81,284)	(150,284)
( 12,352)	( 81,352)	(150,352)

Rows = 69,136,203,271,338,405
Columns = 21,90,159

The coordinates of the top-left corner of the 'socket' for SklTree D2Mod Plugin default setting:
( 18, 18)	( 87, 18)	(156, 18)
( 18, 85)	( 87, 85)	(156, 85)
( 18,152)	( 87,152)	(156,152)
( 18,220)	( 87,220)	(156,220)
( 18,287)	( 87,287)	(156,287)
( 18,353)	( 87,353)	(156,353)

If you have set your own values with SklTree D2Mod Plugin, you should do the following to find a corresponding (x,y) coordinate for you to place your socket:
x = -3 from column
y = -51 from row

Hence if your 1st skill icon is at (71,23), the corresponding offset for top-left is (20,20)

So now that you know where to place the socket images, select the image of the socket with your Magic Wand(tm) or 'Copy and Paste Transparent', making sure that your top-left offset = (x,y) for each of the icons.

2) Placing the Cancel button socket

There are 3 possible places for the cancel buttons, Left, Center and Right. These places are hardcoded, so you'll need to put the cancel button socket in the right place. The coordinates of the top-left of the 3 places are:

   Left		  Center	  Right
( 10,382)	( 95,382)	(166,382)

Char \ Page	Top	Middle	Bottom
Amazon		Left	Center	Right
Sorceress	Right	Left	Left
Necromancer	Left	Right	Left
Paladin		Left	Center	Left
Barbarian	Right	Left	Right
Druid		Right	Right	Right
Assassin	Left	Right	Center

Note: If you remove the cancel button via STCancel.dll, there is no need to place the cancel button. Likewise if you have shifted the cancel button, you would need to place the cancel button 'socket' at its new position.

3) Placing arrows

There's no hard and fast rule. Simply put, every one would have different skill requirements. I have arrows for 8 Cardinal Directions (N,S,E,W,NE,NW,SE,SW), plus a few pieces for 'extending' your arrows. Finally for some really interesting combinations, I have T-shape connectors. I've used those before, so maybe someone else will need it too :)

4) Packing the Skilltree Background DC6

Use your favourite DC6 tool and add the BMPs in this order:
back
bottom
middle
top

Since the images are bigger than 256x256, the prog will split it up nicely for you.

Note: Some DC6 programs require you to add a frame before importing (DC6 Creator). Don't forget to do it. First time I have seen the error for a multi-part DC6 not having the required image.

5) Naming and Saving your skilltree backgrounds

Your finished dc6 should be named as follows and saved in data\global\ui\spells\

skltree_a_back.dc6   - for Amazon
skltree_s_back.dc6   - for Sorceresss
skltree_n_back.dc6   - for Necromancer
skltree_p_back.dc6   - for Paladin
skltree_b_back.dc6   - for Barbarian
skltree_d_back.dc6   - for Druid
skltree_i_back.dc6   - for Assassin

-------------

Thanks for trying this plug-in out. If there are any bugs or queries, PM me in the Keep.

Cheers,
RicFaith


Acknowledgements:
Kingpin - He wrote the original code for this, I tweaked the values, made everything look nice and even, and put it into D2Mod.
Hermy - I saw his skilltree backgrounds in 2001 and shortly after I made my first own set. His idea was an inspiration for me.